package com.example.onlinemallsystem.entity;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.util.Date;

@Data
public  class  User {

    private Long id;
    // 用户名：非空、长度3-20字符、只能包含字母数字和下划线
    private String username;
    private String password;
    private String phone;
    private String email;
    private String userType;
    private Integer status = 1;
    private Date createTime;
    private Date updateTime;
    private String updateUser;
    private String address;
    private Integer deleted = 0;
    private String salt;
    public User(){

    }

    public Long getId() {
        return id;
    }
}
